import request from '../utils/quest'

// 导出获取评论的api
export const getArtCommnet = (data) => {
  return request.get('/v1_0/comments', {
    params: data
  })
}

// 导出点赞评论api
export const toLiking = (data) => {
  return request.post('/v1_0/comment/likings', {
    target: data
  })
}

// 导出取消点赞评论api
export const toDisLiking = (data) => {
  return request.delete('/v1_0/comment/likings/' + data)
}

// 导出写评论的api
export const sendComment = (data) => {
  return request.post('/v1_0/comments', data)
}
